﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChatServer
{
    class Room
    {
        string m_roomName;
        List<User> m_userList;
        public Room(string room_name)
        {
            m_roomName = room_name;
            m_userList = new List<User>();
        }
        public void addUser(User user)
        {
            m_userList.Add(user);
        }
        
        public void removeUser(string user_name)
        {
            foreach(User user in m_userList)
            {
                if (user.getName() == user_name)
                {
                    m_userList.Remove(user);
                }
            }
          
        }
        public string getName()
        {
            return m_roomName;
        }
    }
}
